<?php

App::uses('AppHelper', 'View/Helper');

/**
 * Application helper
 *
 * Add your application-wide methods in the class below, your helpers
 * will inherit them.
 *
 * @package       app.View.Helper
 */
class PostsHelper extends AppHelper {
	public $helpers = array('Html');

	public function thumbSmall($post, $options = null) {
		$options['alt'] = $post['Post']['title'];
		$options['title']  = $post['Post']['title'];
		return $this->Html->image("/".$post['Post']['dir'].'/thumb/small/'.$post['Post']['image'], $options);
  }

	public function thumbMedium($post, $options = null) {
		$options['alt'] = $post['Post']['title'];
		$options['title']  = $post['Post']['title'];
		return $this->Html->image("/".$post['Post']['dir'].'/thumb/medium/'.$post['Post']['image'], $options);
  }
}
